package com.ruoyi.biz.letter.mapper;

import java.util.List;

import com.ruoyi.biz.letter.domain.BizCityLetter;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.biz.report.letter.vo.CategoryCount;
import com.ruoyi.biz.report.letter.vo.CityLetterReport;
import com.ruoyi.biz.report.letter.vo.ReportChild;
import com.ruoyi.biz.report.letter.vo.ReportResp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 地市信访Mapper接口
 *
 * @author Fei.Cong
 * @date 2024-07-12
 */
@Mapper
public interface BizCityLetterMapper extends BaseMapper<BizCityLetter> {

    IPage<BizCityLetter> selectPageList(IPage<BizCityLetter> page, @Param("entity") BizCityLetter bizCityLetter);

    List<BizCityLetter> selectDeptList(@Param("entity") BizCityLetter bizCityLetter);

    List<ReportChild> selectReport(@Param("entity") BizCityLetter bizCityLetter);

    List<CategoryCount> selectReportGroupCategory(@Param("currentMonth") String currentMonth);

    void updateBack(BizCityLetter bizCityLetter);

}
